You have referenced an undefined query name. Check the queries listed in the QueryDefs collection to make sure you referenced a valid query name.